<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
 
<html> 
	<head>
		<title>JSP for EditTeacherInfoForm form</title>
	</head>
	<body>
		<html:form action="/editTeacherInfo">
            <jsp:useBean id="teacherInfo" class="com.lexue.domain.TeacherInfo" scope="session"></jsp:useBean>
            <%
                teacherInfo=(com.lexue.domain.TeacherInfo)session.getAttribute("teacherInfo");
            %>
            teacher_name : <html:text property="teacher_name" value="<%=teacherInfo.getTeacherName() %>"/><html:errors property="teacher_name"/><br/>
            sex : <html:select property="sex" value="<%=teacherInfo.getSex() %>"><html:option key="male" value="male" /><html:option key="female" value="female" /></html:select><html:errors property="sex"/><br/>
			card_type : <html:select property="card_type" value="<%=teacherInfo.getCardType() %>"><html:option key="IC" value="IC" /><html:option key="SC" value="SC" /></html:select><html:errors property="card_type"/><br/>			
			card_number : <html:text property="card_number" value="<%=teacherInfo.getCardNumber() %>"/><html:errors property="card_number"/><br/>
			area_name : <html:text property="area_name" value="<%=teacherInfo.getArea().getAreaName() %>"/><html:errors property="area_name"/><br/>
			city_name : <html:text property="city_name" value="<%=teacherInfo.getCity().getCityName() %>"/><html:errors property="city_name"/><br/>
			school : <html:text property="school" value="<%=teacherInfo.getSchool() %>"/><html:errors property="school"/><br>
			<html:submit/><html:cancel/>
		</html:form>
	</body>
</html>

